{% extends 'goodsapp/list.html' %}

{% block contents %}
    <ul class="goods_type_list clearfix">
            <div class="sorts">
            {% for goods in page.object_list %}
				<li>
					<a href="/detail_{{ goods.object.id }}/"><img src="/static/{{ goods.object.gpic }}"></a>
					<h4><a href="#">{{ goods.object.gtitle }}</a></h4>
					<div class="operate">
						<span class="prize">￥{{ goods.object.gprice }}</span>
						<span class="unit">{{ goods.object.gunit}}</span>
						<a href="#" class="add_goods" title="加入购物车"></a>
					</div>
				</li>
                {% empty %}
            <div class="no-post">没有搜索到你想要的结果！</div>
            {% endfor %}
            </div>
        </ul>
{% endblock %}